package com.xzjt.service.impl;

import com.xzjt.entity.SysUserRole;
import com.xzjt.mapper.SysUserRoleMapper;
import com.xzjt.service.SysUserRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yuandong
 * @since 2021-10-12
 */
@Service
public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUserRole> implements SysUserRoleService {

    @Autowired
    private SysUserRoleMapper sysUserRoleMapper;

    @Override
    public int deleteUserRoleByUserId(Integer userId) {
        return this.sysUserRoleMapper.deleteUserRoleByUserId(userId);
    }
}
